<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Newton Dynamics: ndOpenclSystem Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo_php.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Newton Dynamics
   &#160;<span id="projectnumber">4.00</span>
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.svg"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classnd_opencl_system.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="classnd_opencl_system-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ndOpenclSystem Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for ndOpenclSystem:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classnd_opencl_system.png" usemap="#ndOpenclSystem_map" alt=""/>
  <map id="ndOpenclSystem_map" name="ndOpenclSystem_map">
<area href="classnd_class_alloc.html" title="Base class for providing memory allocation for all other engine classes." alt="ndClassAlloc" shape="rect" coords="0,0,107,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnd_opencl_system_1_1nd_kernel.html">ndKernel</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2c2c52fd47046ea0663b76f0ed23514f"><td class="memItemLeft" align="right" valign="top"><a id="a2c2c52fd47046ea0663b76f0ed23514f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ndOpenclSystem</b> (cl_context context, cl_platform_id)</td></tr>
<tr class="separator:a2c2c52fd47046ea0663b76f0ed23514f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4ebbb70f2c0d27be01820a6888ae3fd"><td class="memItemLeft" align="right" valign="top"><a id="af4ebbb70f2c0d27be01820a6888ae3fd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Finish</b> ()</td></tr>
<tr class="separator:af4ebbb70f2c0d27be01820a6888ae3fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a3b419fe05152fc2fcb80b454c2238e"><td class="memItemLeft" align="right" valign="top"><a id="a9a3b419fe05152fc2fcb80b454c2238e"></a>
cl_program&#160;</td><td class="memItemRight" valign="bottom"><b>CompileProgram</b> ()</td></tr>
<tr class="separator:a9a3b419fe05152fc2fcb80b454c2238e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9143da143cfa88083ec791dc549d6142"><td class="memItemLeft" align="right" valign="top"><a id="a9143da143cfa88083ec791dc549d6142"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Resize</b> (const <a class="el" href="classnd_array.html">ndArray</a>&lt; ndInt32 &gt; &amp;bodyArray)</td></tr>
<tr class="separator:a9143da143cfa88083ec791dc549d6142"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7a689c574635b15c6da67b53585a633"><td class="memItemLeft" align="right" valign="top"><a id="ad7a689c574635b15c6da67b53585a633"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>CopyToGpu</b> (const <a class="el" href="classnd_array.html">ndArray</a>&lt; ndInt32 &gt; &amp;bodyArray)</td></tr>
<tr class="separator:ad7a689c574635b15c6da67b53585a633"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20db263f41f742f0679d783fd0ac8376"><td class="memItemLeft" align="right" valign="top"><a id="a20db263f41f742f0679d783fd0ac8376"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetKernel</b> (const char *const name, <a class="el" href="classnd_opencl_system_1_1nd_kernel.html">ndKernel</a> &amp;kerner)</td></tr>
<tr class="separator:a20db263f41f742f0679d783fd0ac8376"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee5ee7e4428a40fc311a42576c0cc8ca"><td class="memItemLeft" align="right" valign="top"><a id="aee5ee7e4428a40fc311a42576c0cc8ca"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>ExecuteIntegrateBodyPosition</b> (ndFloat32 timestep, const <a class="el" href="classnd_array.html">ndArray</a>&lt; <a class="el" href="classnd_body_kinematic.html">ndBodyKinematic</a> * &gt; &amp;bodyArray)</td></tr>
<tr class="separator:aee5ee7e4428a40fc311a42576c0cc8ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classnd_class_alloc"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classnd_class_alloc')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classnd_class_alloc.html">ndClassAlloc</a></td></tr>
<tr class="memitem:affad975c41ed36eae8c71e3468fc12e3 inherit pub_methods_classnd_class_alloc"><td class="memItemLeft" align="right" valign="top"><a id="affad975c41ed36eae8c71e3468fc12e3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnd_class_alloc.html#affad975c41ed36eae8c71e3468fc12e3">ndClassAlloc</a> ()</td></tr>
<tr class="memdesc:affad975c41ed36eae8c71e3468fc12e3 inherit pub_methods_classnd_class_alloc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty default constructor. <br /></td></tr>
<tr class="separator:affad975c41ed36eae8c71e3468fc12e3 inherit pub_methods_classnd_class_alloc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fea90aa3642db2007a191975bb169ce inherit pub_methods_classnd_class_alloc"><td class="memItemLeft" align="right" valign="top"><a id="a8fea90aa3642db2007a191975bb169ce"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnd_class_alloc.html#a8fea90aa3642db2007a191975bb169ce">~ndClassAlloc</a> ()</td></tr>
<tr class="memdesc:a8fea90aa3642db2007a191975bb169ce inherit pub_methods_classnd_class_alloc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty. <br /></td></tr>
<tr class="separator:a8fea90aa3642db2007a191975bb169ce inherit pub_methods_classnd_class_alloc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a4fdd228e4bea954def8467904c0580b9"><td class="memItemLeft" align="right" valign="top"><a id="a4fdd228e4bea954def8467904c0580b9"></a>
static <a class="el" href="classnd_opencl_system.html">ndOpenclSystem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>Singleton</b> (ndInt32 driveNumber)</td></tr>
<tr class="separator:a4fdd228e4bea954def8467904c0580b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classnd_class_alloc"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classnd_class_alloc')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="classnd_class_alloc.html">ndClassAlloc</a></td></tr>
<tr class="memitem:a1f1766c498c6231d24c63582106d2cfc inherit pub_static_methods_classnd_class_alloc"><td class="memItemLeft" align="right" valign="top"><a id="a1f1766c498c6231d24c63582106d2cfc"></a>
D_OPERATOR_NEW_AND_DELETE static D_CORE_API void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnd_class_alloc.html#a1f1766c498c6231d24c63582106d2cfc">Malloc</a> (size_t size)</td></tr>
<tr class="memdesc:a1f1766c498c6231d24c63582106d2cfc inherit pub_static_methods_classnd_class_alloc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic allocation for any function subclass from <a class="el" href="classnd_class_alloc.html" title="Base class for providing memory allocation for all other engine classes.">ndClassAlloc</a>. <br /></td></tr>
<tr class="separator:a1f1766c498c6231d24c63582106d2cfc inherit pub_static_methods_classnd_class_alloc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5037cbc14d91b2b5e6b5163ed0ef9757 inherit pub_static_methods_classnd_class_alloc"><td class="memItemLeft" align="right" valign="top"><a id="a5037cbc14d91b2b5e6b5163ed0ef9757"></a>
static D_CORE_API void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnd_class_alloc.html#a5037cbc14d91b2b5e6b5163ed0ef9757">Free</a> (void *const ptr)</td></tr>
<tr class="memdesc:a5037cbc14d91b2b5e6b5163ed0ef9757 inherit pub_static_methods_classnd_class_alloc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic destruction for any function subclass from <a class="el" href="classnd_class_alloc.html" title="Base class for providing memory allocation for all other engine classes.">ndClassAlloc</a>. <br /></td></tr>
<tr class="separator:a5037cbc14d91b2b5e6b5163ed0ef9757 inherit pub_static_methods_classnd_class_alloc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:abefbc5d401ae14837dedcd804865d2d9"><td class="memItemLeft" align="right" valign="top"><a id="abefbc5d401ae14837dedcd804865d2d9"></a>
<a class="el" href="classnd_opencl_body_buffer.html">ndOpenclBodyBuffer</a>&#160;</td><td class="memItemRight" valign="bottom"><b>m_bodyArray</b></td></tr>
<tr class="separator:abefbc5d401ae14837dedcd804865d2d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d8faf1653d66c64f839f80ab78341fc"><td class="memItemLeft" align="right" valign="top"><a id="a5d8faf1653d66c64f839f80ab78341fc"></a>
char&#160;</td><td class="memItemRight" valign="bottom"><b>m_platformName</b> [128]</td></tr>
<tr class="separator:a5d8faf1653d66c64f839f80ab78341fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8b57cb899273dcb8b93ff1f0db69e39"><td class="memItemLeft" align="right" valign="top"><a id="af8b57cb899273dcb8b93ff1f0db69e39"></a>
cl_context&#160;</td><td class="memItemRight" valign="bottom"><b>m_context</b></td></tr>
<tr class="separator:af8b57cb899273dcb8b93ff1f0db69e39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae81fda25f402af72b88c22fe3d6e1d89"><td class="memItemLeft" align="right" valign="top"><a id="ae81fda25f402af72b88c22fe3d6e1d89"></a>
cl_device_id&#160;</td><td class="memItemRight" valign="bottom"><b>m_device</b></td></tr>
<tr class="separator:ae81fda25f402af72b88c22fe3d6e1d89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcda7431320e204da1e804181bf66ec5"><td class="memItemLeft" align="right" valign="top"><a id="afcda7431320e204da1e804181bf66ec5"></a>
cl_program&#160;</td><td class="memItemRight" valign="bottom"><b>m_solverProgram</b></td></tr>
<tr class="separator:afcda7431320e204da1e804181bf66ec5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe7fa5d2e74ac86fda19ce2df830ac68"><td class="memItemLeft" align="right" valign="top"><a id="abe7fa5d2e74ac86fda19ce2df830ac68"></a>
cl_command_queue&#160;</td><td class="memItemRight" valign="bottom"><b>m_commandQueue</b></td></tr>
<tr class="separator:abe7fa5d2e74ac86fda19ce2df830ac68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa65b971488fc35405233a1d5bf78f25"><td class="memItemLeft" align="right" valign="top"><a id="aaa65b971488fc35405233a1d5bf78f25"></a>
<a class="el" href="classnd_opencl_system_1_1nd_kernel.html">ndKernel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>m_integrateBodiesPosition</b></td></tr>
<tr class="separator:aaa65b971488fc35405233a1d5bf78f25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdffdebe8363347fcb42efe24ef5f1be"><td class="memItemLeft" align="right" valign="top"><a id="afdffdebe8363347fcb42efe24ef5f1be"></a>
<a class="el" href="classnd_opencl_system_1_1nd_kernel.html">ndKernel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>m_integrateBodiesVelocity</b></td></tr>
<tr class="separator:afdffdebe8363347fcb42efe24ef5f1be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d32910821e01aeed99b09112b08daf0"><td class="memItemLeft" align="right" valign="top"><a id="a3d32910821e01aeed99b09112b08daf0"></a>
<a class="el" href="classnd_opencl_system_1_1nd_kernel.html">ndKernel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>m_integrateUnconstrainedBodies</b></td></tr>
<tr class="separator:a3d32910821e01aeed99b09112b08daf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a622894b16cf2f712ce84960798f83edf"><td class="memItemLeft" align="right" valign="top"><a id="a622894b16cf2f712ce84960798f83edf"></a>
ndInt32&#160;</td><td class="memItemRight" valign="bottom"><b>m_computeUnits</b></td></tr>
<tr class="separator:a622894b16cf2f712ce84960798f83edf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a05dc5d40795dd74b0ece0ab3a9994e5b"><td class="memItemLeft" align="right" valign="top"><a id="a05dc5d40795dd74b0ece0ab3a9994e5b"></a>
static const char *&#160;</td><td class="memItemRight" valign="bottom"><b>m_kernelSource</b></td></tr>
<tr class="separator:a05dc5d40795dd74b0ece0ab3a9994e5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classnd_opencl_system.html">ndOpenclSystem</a></li>
    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
  </ul>
</div>
</body>
</html>
